﻿using System;
using System.Collections.Generic;

namespace Socium.Domain.Tests {
	[Serializable]
	public sealed class ClosedQuestion : Question {
		readonly ICollection<Variant> _variants = new LinkedList<Variant>();

		public ClosedQuestion(string text, CountRange answer_count_range)
			: base(text) {
			AnswerCountRange = answer_count_range;
		}

		public CountRange AnswerCountRange { get; set; }

		public ICollection<Variant> Variants {
			get { return _variants; }
		}

		public override string ToString() {
			return string.Format(
				"ClosedQuestion Text=\"{0}\" Range={1}",
				Text,
				AnswerCountRange
			);
		}
	}
}